import { Injectable, OnApplicationBootstrap, OnModuleDestroy, OnModuleInit } from '@nestjs/common';
import { CreateTestDto } from './dto/create-test.dto';
import { UpdateTestDto } from './dto/update-test.dto';

@Injectable()
export class TestService implements OnModuleInit, OnModuleDestroy, OnApplicationBootstrap {
  constructor() {
    console.log('constructor');
  }

  onApplicationBootstrap() {
    console.log('onApplicationBootstrap');
  }
  onModuleDestroy() {
    console.log('onModuleDestroy');
  }
  onModuleInit() {
    console.log('onModuleInit');
  }
  create(createTestDto: CreateTestDto) {
    return 'This action adds a new test';
  }

  findAll() {
    return `This action returns all test`;
  }

  findOne(id: number) {
    return `This action returns a #${id} test`;
  }

  update(id: number, updateTestDto: UpdateTestDto) {
    return `This action updates a #${id} test`;
  }

  remove(id: number) {
    return `This action removes a #${id} test`;
  }
}
